package com.cug.campus_sh_market_server.entity.param.user;

import com.cug.campus_sh_market_server.entity.po.BaseEntity;
import com.cug.campus_sh_market_server.util.QueryWrapperUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author sxt
 * @since 2022-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "用户添加参数", description = "用户添加参数")
public class UserQueryParam extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学院id")
    private Integer collegeId;

    @QueryWrapperUtil.NeedLike
    @QueryWrapperUtil.OrSelect
    @ApiModelProperty(value = "用户昵称")
    private String username;

    @QueryWrapperUtil.NeedLike
    @QueryWrapperUtil.OrSelect
    @ApiModelProperty(value = "真实姓名")
    private String realName;

    @QueryWrapperUtil.NeedLike
    @ApiModelProperty(value = "用户账号")
    private String account;

    @ApiModelProperty(value = "身份标识(学生0/老师1)")
    private Integer identity;

    @NotNull
    @ApiModelProperty(value = "用户类型(-1: 游客, 0: 普通用户, 1: 管理员, 2: 超级管理员)")
    private Integer userType;

    @QueryWrapperUtil.NeedLike
    @ApiModelProperty(value = "电话")
    private String tel;

}
